####
# 
# File: sfxDirectory
# 
# (C) Copyright 2019. All rights reserved.
# 
# Author: ShenYongchen (shenyczz@163.com)
# 
###############################################################################
# 
if(SFX_MACRO_MESSAGE_SWITCH)
  message(STATUS "sfx runing - ${CMAKE_CURRENT_LIST_FILE}")
endif()


include(GNUInstallDirs)
# 
# CMAKE_INSTALL_xxx
# 
# CMAKE_INSTALL_BINDIR                  = bin
# CMAKE_INSTALL_LIBDIR                  = lib
# CMAKE_INSTALL_INCLUDEDIR              = include
# CMAKE_INSTALL_DATADIR                 = share
# CMAKE_INSTALL_DATAROOTDIR             = share
# CMAKE_INSTALL_PREFIX                  = c:/Program Files (x86)/SFX
# CMAKE_INSTALL_DEFAULT_COMPONENT_NAME  = Unspecified
# CMAKE_INSTALL_DEFAULT_DIRECTORY_PERMISSIONS
# CMAKE_INSTALL_MESSAGE
# CMAKE_INSTALL_NAME_DIR
# CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT
# CMAKE_INSTALL_REMOVE_ENVIRONMENT_RPATH
# CMAKE_INSTALL_RPATH
# CMAKE_INSTALL_RPATH_USE_LINK_PATH
# 
# Set up our directory structure for output binaries and libraries
# after include sfxDirectory.cmake
# 

# 
# SFX_ROOT_DIR    => D:/sfxCode/cmk/sfx_library
# SFX_BINARY_DIR  => D:/sfxCode/cmk/sfx_library/Source
# SFX_BUILD_DIR   => D:/sfxCode/cmk/sfx_library/build
# 
set(SFX_ROOT_DIR "${CMAKE_SOURCE_DIR}")
set(SFX_SOURCE_DIR "${CMAKE_SOURCE_DIR}/Source")
set(SFX_BUILD_DIR "${CMAKE_BINARY_DIR}")
# 
# SFX_RUNTIME_DIR => D:/sfxCode/cmk/sfx_library/build/bin
# SFX_LIBRARY_DIR => D:/sfxCode/cmk/sfx_library/build/lib
# SFX_ARCHIVE_DIR => D:/sfxCode/cmk/sfx_library/build/lib
# 
set(SFX_RUNTIME_DIR "${SFX_BUILD_DIR}/${CMAKE_INSTALL_BINDIR}")
set(SFX_LIBRARY_DIR "${SFX_BUILD_DIR}/${CMAKE_INSTALL_LIBDIR}")
set(SFX_ARCHIVE_DIR "${SFX_BUILD_DIR}/${CMAKE_INSTALL_LIBDIR}")
# message(STATUS "SFX_ARCHIVE_DIR = " ${SFX_ARCHIVE_DIR})

# 
# CMAKE_RUNTIME_OUTPUT_DIRECTORY
# CMAKE_LIBRARY_OUTPUT_DIRECTORY
# CMAKE_ARCHIVE_OUTPUT_DIRECTORY
# 
# set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_BINDIR}")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${SFX_RUNTIME_DIR}")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}")
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}")
mark_as_advanced(CMAKE_RUNTIME_OUTPUT_DIRECTORY
    CMAKE_LIBRARY_OUTPUT_DIRECTORY
    CMAKE_ARCHIVE_OUTPUT_DIRECTORY)

# 
# }}@@@
# 